package com.gemalto.Kryptik.MacroCamera;

import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;

public class MCDocumentListener implements DocumentListener {


	public void changedUpdate(DocumentEvent e){
		System.out.println("CCC");
	}
	public void insertUpdate(DocumentEvent e){
		try{
		System.out.println("At index "+e.getOffset()+" inserted "+e.getLength()+": "+
				   e.getDocument().getText(e.getOffset(),e.getLength()));
		} catch (BadLocationException ble){

		}
	}

	public void removeUpdate(DocumentEvent e){
		System.out.println("At index "+e.getOffset()+" removed "+e.getLength());
	}


}